{ pkgs, ... }: {
  boot.initrd.kernelModules = [ "i915" ];

  environment.variables = {
    VDPAU_DRIVER = "va_gl";
  };

  hardware.opengl.extraPackages = with pkgs; [
    intel-vaapi-driver
    intel-media-driver
    libvdpau-va-gl
  ];
}